package org.road0329.tools.proto_parse_tool.ems.dataobject.gw;

import java.io.Serializable;

public class GwItemData<T> implements Serializable {

    private static final long serialVersionUID = 1L;

    private int fn;
    private int pn;
    private Integer callDataType;
    public T data;

    private Boolean success;              // 是否成功

    public GwItemData() {

    }

    public GwItemData(int fn, int pn) {
        super();
        this.fn = fn;
        this.pn = pn;
    }

    public GwItemData(int fn, int pn, T data) {
        super();
        this.fn = fn;
        this.pn = pn;
        this.data = data;
    }

    public GwItemData(int fn, int pn, T data, int type) {
        super();
        this.fn = fn;
        this.pn = pn;
        this.data = data;
        this.callDataType = type;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public Boolean getSuccess() {
        return success;
    }

    public void setSuccess(Boolean success) {
        this.success = success;
    }

    public int getFn() {
        return fn;
    }

    public void setFn(int fn) {
        this.fn = fn;
    }

    public int getPn() {
        return pn;
    }

    public void setPn(int pn) {
        this.pn = pn;
    }
}
